[COMMUNITY] 커뮤니티 기능 추가#26
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
05.21 기준 PETTY-HUB 에서 Community 폴더 및 관련 resources 추가하였습니다. SupabaseDataSourceConfig.java에서 community 관련 주석 두개 해제하였습니다. build.gradle에서 아래 설정 추가하였습니다. jdbc와 jpa가 공존한다는 Info가 떠서 jdbc 관련 dependency 주석 처리하였습니다. --자세한 Info-- |
📜 PR 내용 요약
커뮤니티(Community) 기능을 새롭게 추가했습니다.
static 리소스(static/js/common, static/images) 폴더를 추가하여 게시글 작성/수정 기능과 연동되는 자바스크립트 및 기본 이미지(유저가 이미지 업로드를 안했을때 보여지는 기본 이미지)를 관리하도록 구성했습니다.
⚒️ 작업 및 변경 내용(상세하게)
1. Community 기능 추가
/src/main/java/io/github/petty/community/ 패키지 생성 및 전체 기능 구현
주요 구성
controller
PostController : 게시글 작성, 조회, 수정, 삭제 처리
CommentController : 댓글 작성, 조회, 삭제 처리
PostImageUploadController : Supabase Storage를 이용한 이미지 업로드
PostViewController : 게시글 조회수 증가 처리
dto
entity
repository
service
util
2. resources 폴더 변경
/src/main/resources/static/ 하위에 다음 폴더 및 파일 추가
static/images/no-images.jpg
이미지가 없는 게시글을 위한 기본 이미지 파일
static/js/common/
edit-qna.js, edit-review.js, edit-showoff.js, form.js 파일 추가
게시글 작성/수정 폼의 동작을 제어하는 JavaScript 파일
/src/main/resources/templates/ 하위에 다음 HTML 파일 추가
post-qna-form.html, post-qna-list.html
post-review-form.html, post-review-list.html
post-showoff-form.html, post-showoff-list.html
edit-qna.html, edit-review.html, edit-showoff.html
post-detail.html
기존 index.html 수정 (게시판 접근 버튼 추가)
📚 기타 참고 사항